// 保存当前菜单栏的路径
export const SAVE_PATH = (state, pathName) => {
    state.pathName = pathName;
};

// 保存登录信息
export const SAVE_USER_INFO = (state, userInfo) => {
    state.userInfo = userInfo;
};

// 退出时清空存储信息
export const CLEAR_USER_INFO = (state) => {
    state.userInfo = {};
};
 export const SAVE_DICT = (state, obj={}) => {
     state.dict[obj.key] = obj.value || {}
 }
